package jp.co.apl.haven.web.service;

import jp.co.apl.haven.generated.HavenProtos.AnswerList;
import jp.co.apl.haven.persistence.Persistence;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.inject.Inject;

public class HavenWebServiceImpl implements HavenWebService {

    private Logger logger = LoggerFactory.getLogger(HavenWebServiceImpl.class);

    @Inject
    private Persistence persistence;

    @Override
    public void saveAll(AnswerList answerList) {
        logger.debug("saveAll start");
        persistence.saveAnswerList(answerList);
        logger.debug("saveAll end");
    }

}
